<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="MobileOptimized" content="width"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
    <link rel="shortcut icon" href="{$domainStatic}/favicon.ico" type="image/x-icon" />
    <title>{$itemInfo.title ? $itemInfo.title  : '搜索'}_{$settingInfo.siteName}</title>
    <meta name="keywords" content="{$itemInfo.keywords}">
    <meta name="description" content="{$itemInfo.description}">
    {include file='headerStatic'}
</head>
<body>
{include file='header'}
<div class="layout-main pb-3">
    <div class="container">
        <div class="row">
            <div class="col-12 py-5">
                <div class="row justify-content-md-center">
                    <div class="col-12 col-lg-8">
                        <form class="search-form" action="{$domain}/search/">
                            <input class="form-control search-input" type="search" id="q" name="q" value="{$itemInfo['title']}" placeholder="输入搜索的内容" aria-label="Search">
                            <button class="ssy-btn ssy-btn-primary search-btn" type="submit"><img width="18" src="{$doamin}/{$tplPath}/{$tplName}/images/search.png"/></button>
                        </form>
                    </div>
                </div>
            </div>
            <section class="col-12">
                {tag:articleinfo id='itemList' type='search' keywords='$itemInfo["title"]' limit='10' page='$page' /}
                {if condition='!$itemList'}
                    <div class="row justify-content-md-center py-4 pb-5">
                        <div class="col-12 col-lg-8 text-center">
                            <div>
                                <img src="{$doamin}/{$tplPath}/{$tplName}/images/no-data.png"/>
                            </div>
                            <p>没有搜索到“{$itemInfo['title']}”结果</p>
                        </div>
                    </div>
                {else/}
                <div class="row justify-content-md-center">
                    <main class="col-12 col-lg-8">
                        <section class="ssy-box">
                            <section class="ssy-box-heading">
                                <h3 class="title">以下是搜索“{$itemInfo['title']}”的结果：</h3>
                            </section>
                            <section class="ssy-box-body">
                                    <ul class="ssy-media-list">
                                    {foreach name='$itemList' id="v"}
                                         {include file='article/block/article-list'}
                                    {/foreach}
                                    </ul>
                                    {tag:articlepagelist keywords='$itemInfo["title"]' type='search' limit='10' page='$page' /}
                            </section>
                        </section>
                    </main>
                </div>
                {/if}
            </section>
        </div>
    </div>
</div>
    {include file='footer'}
</body>
</html>
